import groovy.time.TimeCategory

use ( TimeCategory ) {
	def now = new Date()
	println now
	now = now + 5.hours
	println now
}

//def s = '100.50 coffee at Kadamba #tea #snacks'
//println 'String: ' + s + '<br />'
//def matcher = (s =~ /^(\d+(.\d+)?) ([^#]*)(.*)$/)
//if(matcher.matches()) {
//	println 'Matcher: ' + matcher[0] + '<br />'
//	println 'Amount: ' + matcher[0][1] + '<br />'
//	println 'Description: ' + matcher [0][3] + '<br />'
//	println 'Tags: ' + matcher[0][4] + '<br />'
//}
//
//def date = new Date().parse('yyyy-MM-dd HH:mm', '2011-10-24 22:20')
//def now = new Date()
//println date - now

/*
 def s = 'C:/myhome/dev-home/p4-depot/products/dcache/main/conf/apache/maps/bug_72935_redirect_map.txt'
 def p = '^www.lastminute.com/lmn/pso/catalog/Product.jhtml?PRODID=.*&CATID=96507'
 p = '^www\\.lastminute\\.com.*?PRODID=.*&CATID=96507.*'
 def file = new File(s).eachLine { line ->
 def matcher = (line =~ p)
 if(matcher.matches()) {
 println line
 }
 }
 */